package com.xyht.sca_s.student_manage_system.modules.welcomeNewStudent.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 学生书杂费记录表
 * </p>
 *
 * @author XYHT
 * @since 2024-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sms_wns_book_fees_plan_fees_record")
@ApiModel(value="SmsWnsBookFeesPlanFeesRecord对象", description="学生书杂费记录表")
public class SmsWnsBookFeesPlanFeesRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "费用记录id")
    private String id;

    @ApiModelProperty(value = "收费计划Id")
    private String planId;

    @ApiModelProperty(value = "userId")
    private String userId;

    @ApiModelProperty(value = "stuId")
    private String stuId;

    @ApiModelProperty(value = "实付金额")
    private BigDecimal paymentAmount;

    @ApiModelProperty(value = "应缴金额")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "应退金额")
    private BigDecimal needBackAmount;

    @ApiModelProperty(value = "是否已退")
    private Boolean isBack;

    @ApiModelProperty(value = "备注")
    private String description;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "是否删除：0：未删除 1：已删除")
    @TableLogic
    private Integer isDeleted;


}
